
#ifndef _ChangeMapTypeForm_H_
#define _ChangeMapTypeForm_H_

#include <FBase.h>
#include <FUi.h>
#include <FWeb.h>

//Constant
	const static int MAPTYPE_ROADMAP = 0;
	const static int MAPTYPE_SATELLITE = 1;
	const static int MAPTYPE_HYBRID = 2;
	const static int MAPTYPE_TERRAIN = 4;

class ChangeMapTypeForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	ChangeMapTypeForm(void);
	virtual ~ChangeMapTypeForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

// Implementation
protected:

// Generated call-back functions
public:
	void OnActionPerformed(const Osp::Ui::Control& source, int actionId);

// My Code
// Variant
public:

private:
	//Action ID
	const static int ID_CHKBUTTON_ROADMAP = 1025;
	const static int ID_CHKBUTTON_SATELLITE = 1026;
	const static int ID_CHKBUTTON_HYBRID = 1027;
	const static int ID_CHKBUTTON_TERRAIN = 1028;
	const static int ID_SOFTKEY_OK = 1029;
	const static int ID_SOFTKEY_CANCEL = 1030;
	static int FormId;
	Osp::Ui::Controls::CheckButton *__pChkButtonRoadmap;
	Osp::Ui::Controls::CheckButton *__pChkButtonSatellite;
	Osp::Ui::Controls::CheckButton *__pChkButtonHybrid;
	Osp::Ui::Controls::CheckButton *__pChkButtonTerrain;

	Osp::Ui::Controls::Frame *__pFrame;
	Osp::Ui::Controls::Form *__pParent;

	int intMapTypeId;
// Function
public:
	void SetFrame(Osp::Ui::Controls::Frame *pFrame);
	void SetFormParent(Osp::Ui::Controls::Form *pParent);
	void SetCurrentMapType(Osp::Base::String strCurrentMapType);

	void SetFormId(int id){
		this->FormId = id;
	}

	static int GetFormId(){
		return FormId;
	}

};

#endif
